# Maintainer: Alexey Pavlov <alexpux@gmail.com>

pkgname=perl-common-sense
pkgver=3.73
pkgrel=1
pkgdesc="Implements some sane defaults for Perl programs"
arch=('any')
groups=('perl-modules')
url="http://search.cpan.org/dist/common-sense"
license=('PerlArtistic' 'GPL')
depends=('perl')
options=('!emptydirs')
source=("http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/common-sense-$pkgver.tar.gz")
md5sums=('6da7455a43ab60ed21c2a5e3b3ddeda8')

build() {
  cd common-sense-$pkgver
  perl Makefile.PL INSTALLDIRS=vendor
  make
}

check() {
  cd common-sense-$pkgver
  make test
}

package() {
  cd common-sense-$pkgver
  make DESTDIR="$pkgdir" install
}
